package com.ruoyi.football.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.football.mapper.StadiumDetailMapper;
import com.ruoyi.football.domain.StadiumDetail;
import com.ruoyi.football.service.IStadiumDetailService;

/**
 * 球场场地详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-10
 */
@Service
public class StadiumDetailServiceImpl extends ServiceImpl<StadiumDetailMapper,StadiumDetail> implements IStadiumDetailService
{
    @Autowired
    private StadiumDetailMapper stadiumDetailMapper;

    /**
     * 查询球场场地详情
     * 
     * @param id 球场场地详情主键
     * @return 球场场地详情
     */
    @Override
    public StadiumDetail selectStadiumDetailById(Long id)
    {
        return stadiumDetailMapper.selectStadiumDetailById(id);
    }

    /**
     * 查询球场场地详情列表
     * 
     * @param stadiumDetail 球场场地详情
     * @return 球场场地详情
     */
    @Override
    public List<StadiumDetail> selectStadiumDetailList(StadiumDetail stadiumDetail)
    {
        return stadiumDetailMapper.selectStadiumDetailList(stadiumDetail);
    }

    /**
     * 新增球场场地详情
     * 
     * @param stadiumDetail 球场场地详情
     * @return 结果
     */
    @Override
    public int insertStadiumDetail(StadiumDetail stadiumDetail)
    {
        return stadiumDetailMapper.insertStadiumDetail(stadiumDetail);
    }

    /**
     * 修改球场场地详情
     * 
     * @param stadiumDetail 球场场地详情
     * @return 结果
     */
    @Override
    public int updateStadiumDetail(StadiumDetail stadiumDetail)
    {
        return stadiumDetailMapper.updateStadiumDetail(stadiumDetail);
    }

    /**
     * 批量删除球场场地详情
     * 
     * @param ids 需要删除的球场场地详情主键
     * @return 结果
     */
    @Override
    public int deleteStadiumDetailByIds(Long[] ids)
    {
        return stadiumDetailMapper.deleteStadiumDetailByIds(ids);
    }

    /**
     * 删除球场场地详情信息
     * 
     * @param id 球场场地详情主键
     * @return 结果
     */
    @Override
    public int deleteStadiumDetailById(Long id)
    {
        return stadiumDetailMapper.deleteStadiumDetailById(id);
    }
}
